#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
    double S = 0;
    int k = 0, n = 1;
    cin >> k;
    while (1)
    {
        S += 1.0 / n;
        if (S > k * 1.0)
        {
            break;
        }
        n++;
    }
    cout << n;
}